package day01;
import java.util.Random;
import java.util.Scanner;
public class HomeWork01 {

	public static void main(String[]args) {
		System.out.println("我行我素，幸运抽奖管理系统>幸运抽奖");
		//1.生成随机数
		Random rand = new Random();
		int suiji = rand.nextInt(10);
		//2.输入会员号
		Scanner input = new Scanner(System.in);
		System.out.print("请输入四位会员卡号:");
		int cardNum = input.nextInt();
		//3.获取会员号中的百威数字
		int bW = cardNum%1000/100;
		//4.比较这俩个数字是否相等
		if(suiji == bW) {
			System.out.println("1234号客户是幸运客户，获得精美MP3一个。");
		}
		else {
			System.out.println("谢谢支持");

		}
		
	}
	
}
